home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 15
/
Aminet 15 - Nov 1996.iso
/
Aminet
/
dev
/
gcc
/
ixemsdk.lha
/
man
/
cat3
/
modf.0
< prev
next >
Wrap
Text File
|
1996-09-02
|
1KB
|
29 lines
MODF(3) UNIX Programmer's Manual MODF(3)
NNAAMMEE
mmooddff - extract signed integral and fractional values from floating-point
number
SSYYNNOOPPSSIISS
##iinncclluuddee <<mmaatthh..hh>>
_d_o_u_b_l_e
mmooddff(_d_o_u_b_l_e _v_a_l_u_e, _d_o_u_b_l_e _*_i_p_t_r)
DDEESSCCRRIIPPTTIIOONN
The mmooddff() function breaks the argument _v_a_l_u_e into integral and fraction-
al parts, each of which has the same sign as the argument. It stores the
integral part as a _d_o_u_b_l_e in the object pointed to by _i_p_t_r.
RREETTUURRNN VVAALLUUEESS
The mmooddff() function returns the signed fractional part of _v_a_l_u_e.
SSEEEE AALLSSOO
frexp(3), ldexp(3), math(3)
SSTTAANNDDAARRDDSS
The mmooddff() function conforms to ANSI C3.159-1989 (``ANSI C'').
BSD Experimental June 4, 1993 1